<?php
/**
 * 框架的基本配置，下面是数据库和 memcached/ redis等的配置
 *
 */
$appConfig = array(
    'app' => 'AppController',//应用类名称
    'group_list'=>array('menu', 'admin','platform'),//分组自动加载action和module
    'define' => array(
        'APP_MODULE_ROOT'   => APP_ROOT.'/application',
        'APP_STATIC'   => APP_ROOT.'/static',
        'LOG_LEVEL'    => 5,
        'APP_OFFICAL' => '',
        'LOG_PATH'  => APP_ROOT . '/application/data/logs/',
        'CHARSET_PAGE'  => 'utf-8', //PHP页面编码
        'JS_CSS_DATE' => 20150828,
        'LOGIN_SECURE_ADMIN_KEY' =>'Pl5wAoxKx', //COOKIE OR SESSION KEY
        'LOGIN_SECURE_FRONT_KEY' =>'Hy5FxKx', //COOKIE OR SESSION KEY
        'LOGIN_SECURE_KEY' =>'cy5ew32wo*xKx', //COOKIE OR SESSION KEY
        'LOGIN_SECURE_TIME' => 7200,  //COOKIE　过期时间，单位秒
        'LOGIN_SECURE_TYPE' => 2,  //1:Cookie,2:SESSION
        'LOGIN_SECURE_MD5KEY' => 'daw*(y3$@!osos',
        'SYSTEM_MEMU_ACCESS_LV' => 1,     //系统菜单访问级别 1:超级管理员,2:普通管理员
        'ID_BTGO_ADMIN' => 100004,
        'SDK_API' => '',//SDK的接口地址
        'SDK_API_HOST' => '',
        'HTML_HOST' => '',
        'HOST_SITE_IMG_STATIC' => 'http://img.static.bbfoxgame.com/',//图片的服务器地址
        'HOST_SITE_RESOURCE' => 'http://api.res.bbfoxgame.com/',//资源服务器接口地址
        'SIGN_KEY_RES_UPLOAD' => '97a#d1d8xFeP63*6a4*)X04fb0c',//资源上传key
    ),
    //应用主入口，没有任何参数时进入
    'run' => array(
        'class'=>'home',
        'function'=>'index',
    ),
    'errorReportLevel' => E_ALL & ~E_NOTICE,//错误提示级别

    //需要导入的库目录，自动在对应的目录查找同名的$class.php文件
    'includePath' => array(
        'data_service' => APP_ROOT .'/application/services/',
        'data_cache' => APP_ROOT .'/application/caches/',
    ),

    //应用需要加载的文件,每次请求都会加载
    'autoIncludeFile' => array(
        'AppHelper' => APP_ROOT.'/core/AppHelper.php',
        'Functions' => APP_ROOT.'/application/ext/Functions.php',
    ),

    'actions' => array(
        '*' => true,//控制除下面设定的接口权限外的所有权限
        'default' => array('*'=>1),//defaultAction的所有接口可以访问
        'className' => array(//类1
            'function1' => 1,    //function1:允许
            'function2' => 0,    //function1:禁止
        ),
    ),
);

//---------------------------------数据库配置--------------------------------------------
$dbConfig['default'] = array(
    'DB_TYPE' => 'mysql',
    'DB_CHARSET' => 'utf8',
    'DB_PERSISTENT' => false,
    'DB_HOST'=>'127.0.0.1',
    'DB_PORT'=>3306,
    'DB_USER'=>'root',
    'DB_PASSWD'=>'root',
    'DB_NAME'=>'uri_com',
);

$redisConfig = array(
    'default' =>array(
        'server'			=> '127.0.0.1',
        'port'			=> 6379,
    ),
);
	
